home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 001-025 / disk_003 / xlisp / xlglob.c < prev    next >
C/C++ Source or Header  |  1992-05-06  |  2KB  |  63 lines

  1. /* xlglobals - xlisp global variables */
  2.  
  3. #include "xlisp.h"
  4.  
  5. /* symbols */
  6. NODE *true = NIL;
  7. NODE *s_quote = NIL, *s_function = NIL;
  8. NODE *s_bquote = NIL, *s_comma = NIL, *s_comat = NIL;
  9. NODE *s_evalhook = NIL, *s_applyhook = NIL;
  10. NODE *s_lambda = NIL, *s_macro = NIL;
  11. NODE *s_stdin = NIL, *s_stdout = NIL;
  12. NODE *s_tracenable = NIL, *s_tlimit = NIL, *s_breakenable = NIL;
  13. NODE *s_continue = NIL, *s_quit = NIL;
  14. NODE *s_car = NIL, *s_cdr = NIL;
  15. NODE *s_get = NIL, *s_svalue = NIL, *s_splist = NIL;
  16. NODE *s_eql = NIL, *k_test = NIL, *k_tnot = NIL;
  17. NODE *k_optional = NIL, *k_rest = NIL, *k_aux = NIL;
  18. NODE *a_subr = NIL, *a_fsubr = NIL;
  19. NODE *a_list = NIL, *a_sym = NIL, *a_int = NIL;
  20. NODE *a_str = NIL, *a_obj = NIL, *a_fptr = NIL;
  21. NODE *oblist = NIL, *keylist = NIL, *s_unbound = NIL;
  22.  
  23. /* evaluation variables */
  24. NODE *xlstack = NIL;
  25. NODE *xlenv = NIL;
  26. NODE *xlnewenv = NIL;
  27.  
  28. /* exception handling variables */
  29. CONTEXT *xlcontext = NULL;    /* current exception handler */
  30. NODE *xlvalue = NIL;        /* exception value */
  31.  
  32. /* debugging variables */
  33. int xldebug = 0;        /* debug level */
  34. int xltrace = -1;        /* trace stack pointer */
  35. NODE **trace_stack = NULL;    /* trace stack */
  36.  
  37. /* gensym variables */
  38. char gsprefix[STRMAX+1] = { 'G',0 };    /* gensym prefix string */
  39. int gsnumber = 1;        /* gensym number */
  40.  
  41. /* i/o variables */
  42. int xlplevel = 0;        /* prompt nesting level */
  43. int xlfsize = 0;        /* flat size of current print call */
  44. int prompt = TRUE;        /* input prompt flag */
  45.  
  46. /* dynamic memory variables */
  47. long total = 0L;        /* total memory in use */
  48. int anodes = 0;            /* number of nodes to allocate */
  49. int nnodes = 0;            /* number of nodes allocated */
  50. int nsegs = 0;            /* number of segments allocated */
  51. int nfree = 0;            /* number of nodes free */
  52. int gccalls = 0;        /* number of gc calls */
  53. struct segment *segs = NULL;    /* list of allocated segments */
  54. NODE *fnodes = NIL;        /* list of free nodes */
  55.  
  56. /* object programming variables */
  57. NODE *self = NIL, *class = NIL, *object = NIL;
  58. NODE *new = NIL, *isnew = NIL, *msgcls = NIL, *msgclass = NIL;
  59. int varcnt = 0;
  60.  
  61. /* general purpose string buffer */
  62. char buf[STRMAX+1] = { 0 };
  63.